home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / CLTYPES.HPP < prev    next >
Text File  |  1995-09-11  |  2KB  |  68 lines

  1. //----------------------------------------------------------------------------
  2. //                            MODULE DESCRIPTION
  3. //
  4. //  Module:    cltypes.hpp
  5. //   Title:    C++ Class Libraries
  6. //  Notice:    John M. Weeder
  7. //                 Copyright (c) 1993. All rights reserved.
  8. //             This module contains proprietary information and should be 
  9. //                treated as confidential.
  10. //
  11. //----------------------------------------------------------------------------
  12. //                           MAINTENANCE HISTORY
  13. //
  14. // $Workfile$
  15. // $Revision$
  16. //   $Author$
  17. //     $Date$
  18. //      $Log$    
  19. //
  20. //----------------------------------------------------------------------------
  21. //                             MODULE NARRATIVE
  22. //
  23. //
  24. //    This module contains class declaration macros and stuff. It is only
  25. //    included for C++ compiles.
  26. //    Use the CLASSDEF macro to declare classes.
  27. //    Example:
  28. //        CLASSDEF(TESTCLASS);
  29. //
  30. //    This module is portable to:
  31. //        DOS 3.X+
  32. //        MS Windows 3.X+
  33. //        OS/2 2.X+
  34. //        OS/2 2.0 PM
  35. //
  36. //    The following compilers are supported:
  37. //        MSC 6.0A
  38. //        MSC/C++ 7.0
  39. //        Borland C++ 3.1 for DOS
  40. //        Borland C++ 1.0 for OS/2 2.X
  41. //
  42. //----------------------------------------------------------------------------
  43.  
  44. //----------------------------------------------------------------------------
  45. //    Macros to declare a class.
  46. //----------------------------------------------------------------------------
  47. #if OS_OS2 || OS_PM
  48. #    define CLASSTYPE            _EXPORT_
  49. #elif OS_WINDOWS || OS_DOS
  50. #    if COMPILE_DLL
  51. #        define CLASSTYPE        _EXPORT_
  52. #    elif COMPILER_MSC
  53. #        define CLASSTYPE
  54. #    else
  55. #        define CLASSTYPE        _HUGE_
  56. #    endif
  57. #endif
  58.  
  59. #define CLASSDEF(name)         class CLASSTYPE name; \
  60. PTRDEF(name); \
  61. REFDEF(name); \
  62. PTRCONSTDEF(name); \
  63. REFCONSTDEF(name); \
  64. REFPTRDEF(name)
  65. //----------------------------------------------------------------------------
  66. //------------------------------- End of File --------------------------------
  67. //----------------------------------------------------------------------------
  68.